﻿#include "RunnableTask.h"
#include "ThreadPool.h"
namespace BattleFire
{
    void RunnableTask::QueueTask(ENamedThreads CurrentThreadIfKnown)
    {
        ThreadPool::Get().QueueTask(this, ThreadToExecuteOn, CurrentThreadIfKnown);
    }
    void FReturnGraphTask::DoTask(ENamedThreads CurrentThread, const RunnableTaskEventRef& MyCompletionGraphEvent)
    {
        ThreadPool::Get().RequestReturn(ThreadToReturnFrom);
    }

}